#ifndef EXPFRAME_H
#define EXPFRAME_H

#include <QFrame>
#include "expanalysiselementframe.h"
#include "expcollectionparaframe.h"
#include "expextracttimeframe.h"
#include "expinstrumentcalframe.h"
#include "expinstrumentparaframe.h"
#include "expinternalstandardframe.h"
#include "expisotoperatioframe.h"
#include "expqcframe.h"
#include "expquantitativemethodframe.h"
#include "expreportframe.h"
#include "expresultframe.h"
#include "expsamplelistframe.h"
#include "spectrallineframe.h"
#include "atunemonitorratioframe.h"
#include "experiment.h"
namespace Ui {
class ExpFrame;
}

class ExpFrame : public QFrame
{
    Q_OBJECT
    
public:
    explicit ExpFrame(QWidget *parent = 0,Experiment *pExperiment=NULL);
    ~ExpFrame();
    
    void LoadData();
    int SaveData();//1:成功 0:失败或取消
private slots:
    void on_tabWidget_currentChanged(int index);

private:
    Ui::ExpFrame *ui;
    //ExpAnalysisElementFrame *pExpAnalysisElementFrame;
    SpectralLineFrame *pSpectralLineFrame;

    ExpCollectionParaFrame *pExpCollectionParaFrame;
    ExpExtractTimeFrame *pExpExtractTimeFrame;
    ExpInstrumentCalFrame *pExpInstrumentCalFrame;
    ExpInstrumentParaFrame *pExpInstrumentParaFrame;
    ExpInternalStandardFrame *pExpInternalStandardFrame;
    //ExpIsotopeRatioFrame *pExpIsotopeRatioFrame;
    ATuneMonitorRatioFrame *pATuneMonitorRatioFrame;
    ExpQcFrame *pExpQcFrame;
    ExpQuantitativeMethodFrame *pExpQuantitativeMethodFrame;
    ExpReportFrame *pExpReportFrame;
    ExpResultFrame *pExpResultFrame;
    ExpSampleListFrame *pExpSampleListFrame;

    Experiment *pExperiment;
    QString fileName;//实验的名字
    QString filePath;

 signals:
    void SIG_ExpSave(QString);
};

#endif // EXPFRAME_H
